export const searchList = [
  {
    type: 'input',
    name: '学生姓名',
    field: 'studentName',
  },
]

export const listColumns = [
  {
    title: '学生姓名',
    key: 'studentName',
  },
  {
    title: '学号',
    key: 'studentNo',
  },
  {
    title: '所在班级',
    key: 'className',
  },
  {
    title: '培养类型',
    key: 'educationTypeName',
  },
  {
    title: '培养形式',
    key: 'educationModeName',
  },
  {
    title: '获奖情况',
    key: 'awards',
  },
  {
    title: '最近更新时间',
    key: 'updateTime',
  },
]

export const actionArr = [
  {
    action: 'look',
    value: '查看',
  },
  {
    action: 'edit',
    value: '编辑',
  },
  {
    action: 'del',
    value: '删除',
  },
]
export const btnList = [
  {
    action: 'add',
    value: '新增',
    auth: ''
  }
];
export const rules = {
  studentName: [
    { required: true, message: '请输入学生姓名', trigger: 'blur' },
  ],
  studentNo: [
    { required: true, message: '请输入学号', trigger: 'change' },
  ],
  classId: [
    { required: true, message: '请选择所在班级', trigger: 'blur' },
  ],
  educationTypeId: [
    { required: true, message: '请选择培养类型', trigger: 'change' },
  ],
  educationModeId: [
    { required: true, message: '请输入培养形式', trigger: 'change' },
  ],
  instructorId: [
    { required: true, message: '请选择指导教师', trigger: 'change' },
  ],
  endDate: [
    { required: true, message: '请选择结课时间', trigger: 'change' },
  ],
  startDate: [
    { required: true, message: '请选择开课时间', trigger: 'change' },
  ],
  studentWorkFileId: [
    { required: true, message: '请上传附件', trigger: 'change' },
  ],
  guidanceContent: [
    { required: true, message: '请输入指导内容', trigger: 'change' },
  ],
  awards: [
    { required: true, message: '请输入获奖情况', trigger: 'change' },
  ],
}